package com.jhm.ai.service.impl;

import com.jhm.ai.domain.AiChatSession;
import com.jhm.ai.mapper.AiChatSessionMapper;
import com.jhm.ai.service.IAiChatSessionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AiChatSessionServiceImpl implements IAiChatSessionService {
    @Autowired
    private AiChatSessionMapper aiChatSessionMapper;

    @Override
    public AiChatSession selectAiChatSessionById(Long id) {
        return aiChatSessionMapper.selectAiChatSessionById(id);
    }

    @Override
    public List<AiChatSession> selectAiChatSessionList(AiChatSession aiChatSession) {
        return aiChatSessionMapper.selectAiChatSessionList(aiChatSession);
    }

    @Override
    public int insertAiChatSession(AiChatSession aiChatSession) {
        return aiChatSessionMapper.insertAiChatSession(aiChatSession);
    }

    @Override
    public int updateAiChatSession(AiChatSession aiChatSession) {
        return aiChatSessionMapper.updateAiChatSession(aiChatSession);
    }

    @Override
    public int deleteAiChatSessionByIds(Long[] ids) {
        return aiChatSessionMapper.deleteAiChatSessionByIds(ids);
    }

    @Override
    public int deleteAiChatSessionById(Long id) {
        return aiChatSessionMapper.deleteAiChatSessionById(id);
    }
}
